
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/eqp/eqpStatus" method="post">
        <div class="bjui-searchBar">

            <g:hiddenField name="SYS_QUERY_NAME" value="eqptotallist" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>设备编号：</label>
            <g:select name="eqpid" from="${eqpIdList}" data-toggle="selectpicker" data-live-search="true" optionKey="EQP_ID" optionValue="EQP_ID" value="${eqpid}" noSelection="['':'--ALL--']" />&nbsp;
            <label>设备状态：</label>
            <g:select name="eqpstatus" from="${eqpStateList}" data-toggle="selectpicker" data-live-search="true" optionKey="EQP_STATUS" optionValue="EQP_STATUS" value="${eqpstatus}" noSelection="['':'--ALL--']" />&nbsp;

            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/tv/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;

        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">

    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="80">设备类型</th>
            <th width="80">设备位置</th>
            <th width="80">设备编号</th>
            <th width="80">设备名称</th>
            <th width="80">设备状态</th>
            <th width="80">设备切换时间</th>
            <th width="80">设备状态持续时间</th>
            <th width="80">设备切换操作人</th>


        </tr>
        </thead>
        <tbody>
        <g:each in="${eqpStatusList}" status="i" var="wipTrendInstance">
            <tr>
                <td>${wipTrendInstance.EQP_TYPE}</td>
                <td>${wipTrendInstance.EQP_LOCATION}</td>
                <td>${wipTrendInstance.EQP_ID}</td>
                <td>${wipTrendInstance.EQP_DESC}</td>
                <td>${wipTrendInstance.EQP_STATUS}</td>
                <td>${wipTrendInstance.EQP_UPDATED}</td>
                <td>${wipTrendInstance.EQP_DURATION}</td>
                <td>${wipTrendInstance.EQP_USERNAME}</td>

                </td>
            </tr>
        </g:each>
        </tbody>
    </table>

</div>
&nbsp;


<script type="text/javascript">
    $(function () {
        $.CurrentNavtab.find('#start-date-input,#end-date-input').datetimepicker({
            format:'yyyy-mm-dd hh',
            autoclose: true,
            todayBtn: true,
            startView:1,
            minView:1,
            pickerPosition: "bottom-left",
            language:'zh-CN',
            startDate:'2016-01-01'
        });

        $.CurrentNavtab.find('.selectpicker').selectpicker();
    })
</script>